import network from './request'
import baseUrl from './baseUrl';

export const apiList = {
    uploadFileToTencent: baseUrl + "/file/uploadFileToTencent",
};


export const addFrontErr = (data: any, params?: Http.RequestOptions) => {
    return network.request({
        url: "https://sy-api.ttjiandan.com/pt/home/addFrontErr",
        data,
        loadingIcon: false,
        ...params,
    });
};

export const decrptMobile = (data: any, params?: Http.RequestOptions) => {
    return network.request({
        url: '/user/decrptMobile',
        data,
        ...params
    });
}

export const getBannerList = (data: any, params?: Http.RequestOptions) => {
    return network.request({
        url: "/home/getBannerList",
        data,
        ...params,
    });
};

export const getSuggestArticlePage = (data: any, params?: Http.RequestOptions) => {
    return network.request({
        url: "/article/getSuggestArticlePage",
        data,
        ...params,
    });
};

export const getArticleDetailByFId = (data: any, params?: Http.RequestOptions) => {
    return network.request({
        url: "/article/getArticleDetailByFId",
        data,
        ...params,
    });
};

export const sendPhoneSms = (data: any, params?: Http.RequestOptions) => {
    return network.request({
        url: "/user/sendPhoneSms",
        data,
        ...params,
    });
};
